import request from '@/utils/request'

//同步分析
export function analyseData(data) {
    return request({
      url: '/api/ai/analyse',
      method: 'post',
      data
    })
}

//异步分析
export function analyseDataMQ(data) {
  return request({
    url: '/api/ai/analyse/mq',
    method: 'post',
    data
  })
}

export function analyseWordData(data) {
  return request({
    url: '/api/ai/analyseWord',
    method: 'post',
    data
  })
}

//异步分析
export function analyseWordDataMQ(data) {
  return request({
    url: '/api/ai/analyseWord/mq',
    method: 'post',
    data
  })
}

export function analyseJsonData(data) {
  return request({
    url: '/api/ai/analyse/jsonData',
    method: 'post',
    data
  })
}

export function recommendUrls(data) {
  return request({
    url: '/api/ai/recommendByUserActions',
    method: 'post',
    data
  })
}

export function getRecommendByUrl(data) {
  return request({
    url: '/api/ai/getRecommendByUrl',
    method: 'post',
    data
  })
}

export function analyseJsMind(data) {
  return request({
    url: '/api/ai/analyse/jsmind',
    method: 'post',
    data
  })
}